package com.yunfei.enums;

/**
 * 自定义请求状态码
 * @author ScienJus
 * @date 2015/7/15.
 */
public enum TongJiCalResultStatus {
    SUCCESS(0, "成功"),
    pairCnt(101, "pairCnt不能为空"),
    onePair(102, "onePair不能为空"),
    twoPair(103, "twoPair不能为空");
    /**
     * 返回码
     */
    private int code;

    /**
     * 返回结果描述
     */
    private String message;

    TongJiCalResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
